﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="SzCourt.WebSite.reporter.login" %>
<%@ Register Src="~/control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register src="~/control/reporter/menu.ascx" tagname="menu" tagprefix="uc3" %>
<%@ Register src="~/control/partselect.ascx" tagname="partselect" tagprefix="uc5" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>互动专区 用户登录- 深圳市中级人民法院 </title>
    <meta id="ctl00_KeyWD" content="深圳,中级,法院,诉讼,政府" name="Keywords" />
    <meta id="ctl00_desP" content="深圳市中级人民法院" name="description" />
    <link href="/images/skin2010/base.css" rel="stylesheet" type="text/css" />
    <link href="/images/shenwu2011/reporter.css" rel="stylesheet" type="text/css" />
    <script src="/js/sw.js" type="text/javascript"></script>
</head>
<body>
    
    <div id="SZCOURT">
        <uc1:header ID="header1" runat="server" />
        <div class="content">
            <div class="dl">
                <uc3:menu ID="menu1" runat="server" />
            </div>
            <div class="dr">
                <uc5:partselect ID="partselect1" runat="server" />
                
                
                <!-- 记者之家 -->
                <div class="report-tab">
                    <div class="tt">
                        <h3>
                            记者之家</h3>
                        <em>&nbsp;</em>
                    </div>
                    <div class="report-login" id="zxtab11">
                        <div class="report-login-ret">
                            <img src="/images/reporter/jzrtop.png" alt="" />
                           <dl>
                                <dt><strong>记者之家</strong>媒体新闻发布/文件下载</dt>
                           </dl>
                           <form id="form1" action="success.aspx" method="post" onsubmit="return CheckInfo();">
                           <table>
                                <tr>
                                    <th>用户名：</th>
                                    <td><input type="text" id="txtName" name="txtName" value="" class="txt" /></td>
                                </tr>
                                <tr>
                                    <th>密码：</th>
                                    <td><input type="password" id="txtPassword" name="txtPassword" value="" class="txt" /></td>
                                </tr>
                                <tr>
                                    <th></th>
                                    <td><input type="submit" class="subm" value="" /></td>
                                </tr>
                           </table>
                           
                         </form>
                            <div class="hspace20 red" id="divMessages" runat="server"></div>
                           <p>
                                关于记者之家<br />
                                1、新闻媒体记者获取记者之家用户名、密码请联系工作人员并提交相关材料证明。<br />
                                2、记者之家栏目中所有内容仅供媒体
                           </p>
                       </div>
                    </div>
                   
                </div>
                
                <div class="g_cf"></div>
            </div>
            <div class="g_cf"></div>
        </div>

        <uc2:footer ID="footer1" runat="server" />
    </div>
</body>
</html>
<script type="text/javascript">
    function CheckInfo() {
        var sName = document.getElementById("txtName").value;
        var re = /^^[a-zA-Z0-9\-]{4,10}$|^[a-zA-Z0-9\-]{4,10}\.[a-zA-Z0-9\-]{4,10}$/;
        if (!re.test(sName)) {
            alert("用户名必须为4-10个字符，不能使用特殊字符！");
            return false;
        }

        var sPassword = document.getElementById("txtPassword").value;
        var re1 = /^^[a-zA-Z0-9\-]{5,15}$|^[a-zA-Z0-9\-]{5,15}\.[a-zA-Z0-9\-]{5,15}$/;
        if (!re1.test(sPassword)) {
            alert("密码必须为大于5小于15个字符.不能使用特殊字符！");
            return false;
        }

        return true;
    }
</script>